﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Face8280WebSocketServer.DTO.FaceDevice
{
    public class WriteNetWorkParameter
    {
        public int DeviceId { get; set; }
        #region wifi

        /// <summary>
        /// 开关 1 or 0
        /// </summary>
        public int WiFiUse { get; set; }
        /// <summary>
        /// wifi热点名称
        /// </summary>
        public string WiFiName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string WiFiPassword { get; set; }
        /// <summary>
        /// IP地址
        /// </summary>
        public string WiFiIp { get; set; }
        /// <summary>
        /// 网关
        /// </summary>
        public string WiFiMask { get; set; }
        /// <summary>
        /// 子网掩码
        /// </summary>
        public string WiFiGateway { get; set; }
        #endregion

        #region webSocket
        ///// <summary>
        ///// 服务器地址
        ///// </summary>
        //public string WSServer { get; set; }
        ///// <summary>
        ///// 服务器端口
        ///// </summary>
        //public int WSPort { get; set; }
        ///// <summary>
        ///// 登录凭证
        ///// </summary>
        //public string WSToken { get; set; }
        ///// <summary>
        ///// SSL证书
        ///// </summary>
        //public string WSServerSSLCert { get; set; }
        ///// <summary>
        ///// 在线状态
        ///// </summary>
        //public int WSStatus { get; set; }
        ///// <summary>
        ///// 保活包间隔
        ///// </summary>
        //public int WSKeepalive { get; set; }
        ///// <summary>
        ///// 连接保持时间
        ///// </summary>
        //public int WSKeeptime { get; set; }
        ///// <summary>
        ///// 重连间隔时间
        ///// </summary>
        //public int WSReconnectTime { get; set; }
        #endregion

        #region IP信息

        /// <summary>
        /// IP地址
        /// </summary>
        public string IIp { get; set; }
        /// <summary>
        /// 子网掩码
        /// </summary>
        public string IMask { get; set; }
        /// <summary>
        /// mac地址
        /// </summary>
        public string IMac { get; set; }
        /// <summary>
        /// 默认网关
        /// </summary>
        public string IGateway { get; set; }
        /// <summary>
        /// 自动获取IP 0--禁用；1--启用
        /// </summary>
        public int IDhcp { get; set; }
        /// <summary>
        /// DNS地址
        /// </summary>
        public string IDns { get; set; }
        /// <summary>
        /// UPD监听端口
        /// </summary>
        public int IUdp { get; set; }
        /// <summary>
        /// TPC监听端口
        /// </summary>
        public int ITcp { get; set; }
        /// <summary>
        /// WEBSOCKET监听端口
        /// </summary>
        public int IWebsocket { get; set; }
        /// <summary>
        /// 启用SSL 0--禁用；1--启用
        /// </summary>
        public int ISsl { get; set; }
        //// <summary>
        //// 保活包间隔
        //// </summary>
        public int IKeepalive { get; set; }
        #endregion
    }
}
